<?php
class ErrorResponse extends Response
{
    //send error message to client
    // Input: Error Message and Error code
    public static function SendErrorMessage($errorMessage)
    {
        return Response::json(array('error_msg'=>$errorMessage));
    }
}
?>